﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

using Unis.Framework.ORM.Attributes;
using System.ComponentModel.DataAnnotations;


namespace KingRoad.EPM.SafetyManagementEntity.Model
{
    /// <summary> 
    /// 文件生成时间 2017/2/15 16:56:46
    /// </summary> 
    [Serializable]
    [ModelMap("Scm_DailyCheck", new string[] { "Dc_ID" })]
    public class ScmDailycheckInfo : BaseEntity
    {
        public ScmDailycheckInfo()
        {

        }


        private string _dcId;
        /// <summary>
        /// 日常检查主键
        /// </summary>
        [ColumnMap("Dc_ID", System.Data.DbType.String)]
        public string Dc_ID
        {
            get { return _dcId; }
            set
            {
                if (object.Equals(this._dcId, value) != true)
                {
                    this._dcId = value;
                    this.RaisePropertyChanged("Dc_ID");
                }
            }
        }


        private int _dcOperateuserid;
        /// <summary>
        /// 操作人员ID
        /// </summary>
        [ColumnMap("Dc_OperateUserID", System.Data.DbType.Int32)]
        public int Dc_OperateUserID
        {
            get { return _dcOperateuserid; }
            set
            {
                if (object.Equals(this._dcOperateuserid, value) != true)
                {
                    this._dcOperateuserid = value;
                    this.RaisePropertyChanged("Dc_OperateUserID");
                }
            }
        }


        private string _dcOperateusername;
        /// <summary>
        /// 操作人员名称
        /// </summary>
        [ColumnMap("Dc_OperateUserName", System.Data.DbType.String)]
        public string Dc_OperateUserName
        {
            get { return _dcOperateusername; }
            set
            {
                if (object.Equals(this._dcOperateusername, value) != true)
                {
                    this._dcOperateusername = value;
                    this.RaisePropertyChanged("Dc_OperateUserName");
                }
            }
        }


        private int _dcCheckdepid;
        /// <summary>
        /// 检查单位ID
        /// </summary>
        [ColumnMap("Dc_CheckDepID", System.Data.DbType.Int32)]
        public int Dc_CheckDepID
        {
            get { return _dcCheckdepid; }
            set
            {
                if (object.Equals(this._dcCheckdepid, value) != true)
                {
                    this._dcCheckdepid = value;
                    this.RaisePropertyChanged("Dc_CheckDepID");
                }
            }
        }


        private string _dcCheckdepname;
        /// <summary>
        /// 检查单位名称
        /// </summary>
        [ColumnMap("Dc_CheckDepName", System.Data.DbType.String)]
        public string Dc_CheckDepName
        {
            get { return _dcCheckdepname; }
            set
            {
                if (object.Equals(this._dcCheckdepname, value) != true)
                {
                    this._dcCheckdepname = value;
                    this.RaisePropertyChanged("Dc_CheckDepName");
                }
            }
        }


        private DateTime _dcChecktime;
        /// <summary>
        /// 检查时间
        /// </summary>
        [ColumnMap("Dc_CheckTime", System.Data.DbType.DateTime)]
        public DateTime Dc_CheckTime
        {
            get { return _dcChecktime; }
            set
            {
                if (object.Equals(this._dcChecktime, value) != true)
                {
                    this._dcChecktime = value;
                    this.RaisePropertyChanged("Dc_CheckTime");
                }
            }
        }


        private int _dcBecheckeddepid;
        /// <summary>
        /// 被检查单位ID
        /// </summary>
        [ColumnMap("Dc_BeCheckedDepID", System.Data.DbType.Int32)]
        public int Dc_BeCheckedDepID
        {
            get { return _dcBecheckeddepid; }
            set
            {
                if (object.Equals(this._dcBecheckeddepid, value) != true)
                {
                    this._dcBecheckeddepid = value;
                    this.RaisePropertyChanged("Dc_BeCheckedDepID");
                }
            }
        }


        private string _dcBecheckeddepname;
        /// <summary>
        /// 被检查单位名称
        /// </summary>
        [Required(ErrorMessage = "*")]
        [StringLength(100, ErrorMessage = "字符长度超出范围")]
        [ColumnMap("Dc_BeCheckedDepName", System.Data.DbType.String)]
        public string Dc_BeCheckedDepName
        {
            get { return _dcBecheckeddepname; }
            set
            {
                if (object.Equals(this._dcBecheckeddepname, value) != true)
                {
                    this._dcBecheckeddepname = value;
                    this.RaisePropertyChanged("Dc_BeCheckedDepName");
                }
            }
        }


        private string _dcBecheckedsection;
        /// <summary>
        /// 被检查标段
        /// </summary>
        [ColumnMap("Dc_BeCheckedSection", System.Data.DbType.String)]
        public string Dc_BeCheckedSection
        {
            get { return _dcBecheckedsection; }
            set
            {
                if (object.Equals(this._dcBecheckedsection, value) != true)
                {
                    this._dcBecheckedsection = value;
                    this.RaisePropertyChanged("Dc_BeCheckedSection");
                }
            }
        }

        private string _dcTypecode;
        /// <summary>
        /// 检查类型编号（1=施工单位，2=驻地办，3=中心试验室，4=总监办）
        /// </summary>
        [ColumnMap("Dc_TypeCode", System.Data.DbType.String)]
        public string Dc_TypeCode
        {
            get { return _dcTypecode; }
            set
            {
                if (object.Equals(this._dcTypecode, value) != true)
                {
                    this._dcTypecode = value;
                    this.RaisePropertyChanged("Dc_TypeCode");
                }
            }
        }
        private string _dcTypename;
        /// <summary>
        /// 检查类型名称
        /// </summary>
        [ColumnMap("Dc_TypeName", System.Data.DbType.String)]
        public string Dc_TypeName
        {
            get { return _dcTypename; }
            set
            {
                if (object.Equals(this._dcTypename, value) != true)
                {
                    this._dcTypename = value;
                    this.RaisePropertyChanged("Dc_TypeName");
                }
            }
        }
        private string _dcBriefproblem;
        /// <summary>
        /// 检查问题简写
        /// </summary>
        [ColumnMap("Dc_BriefProblem", System.Data.DbType.String)]
        public string Dc_BriefProblem
        {
            get { return _dcBriefproblem; }
            set
            {
                if (object.Equals(this._dcBriefproblem, value) != true)
                {
                    this._dcBriefproblem = value;
                    this.RaisePropertyChanged("Dc_BriefProblem");
                }
            }
        }


        private string _dcDetailsproblem;
        /// <summary>
        /// 检查问题详情
        /// </summary>
        [ColumnMap("Dc_DetailsProblem", System.Data.DbType.String)]
        public string Dc_DetailsProblem
        {
            get { return _dcDetailsproblem; }
            set
            {
                if (object.Equals(this._dcDetailsproblem, value) != true)
                {
                    this._dcDetailsproblem = value;
                    this.RaisePropertyChanged("Dc_DetailsProblem");
                }
            }
        }


        private DateTime? _dcCorrecttime;
        /// <summary>
        /// 整改期限
        /// </summary>
        [ColumnMap("Dc_CorrectTime", System.Data.DbType.DateTime)]
        public DateTime? Dc_CorrectTime
        {
            get { return _dcCorrecttime; }
            set
            {
                if (object.Equals(this._dcCorrecttime, value) != true)
                {
                    this._dcCorrecttime = value;
                    this.RaisePropertyChanged("Dc_CorrectTime");
                }
            }
        }


        private string _dcCorrectdemand;
        /// <summary>
        /// 整改要求
        /// </summary>
        [ColumnMap("Dc_CorrectDemand", System.Data.DbType.String)]
        public string Dc_CorrectDemand
        {
            get { return _dcCorrectdemand; }
            set
            {
                if (object.Equals(this._dcCorrectdemand, value) != true)
                {
                    this._dcCorrectdemand = value;
                    this.RaisePropertyChanged("Dc_CorrectDemand");
                }
            }
        }


        private string _dcFeedbackinfo;
        /// <summary>
        /// 反馈信息
        /// </summary>
        [ColumnMap("Dc_FeedbackInfo", System.Data.DbType.String)]
        public string Dc_FeedbackInfo
        {
            get { return _dcFeedbackinfo; }
            set
            {
                if (object.Equals(this._dcFeedbackinfo, value) != true)
                {
                    this._dcFeedbackinfo = value;
                    this.RaisePropertyChanged("Dc_FeedbackInfo");
                }
            }
        }

        private bool _dcIspro;
        /// <summary>
        /// 是否存在问题（0=不存在问题，1=存在问题）
        /// </summary>
        [ColumnMap("Dc_IsPro", System.Data.DbType.Boolean)]
        public bool Dc_IsPro
        {
            get { return _dcIspro; }
            set
            {
                if (object.Equals(this._dcIspro, value) != true)
                {
                    this._dcIspro = value;
                    this.RaisePropertyChanged("Dc_IsPro");
                }
            }
        }

        private int _dcState;
        /// <summary>
        /// 审批状态（存在问题的审批状态才有用：0=草稿，1=施工单位审批中，2=驻地办/中心试验室审批中，3=总监办审批中，4=安监部审批中，5=整改完成）
        /// </summary>
        [ColumnMap("Dc_State", System.Data.DbType.Int32)]
        public int Dc_State
        {
            get { return _dcState; }
            set
            {
                if (object.Equals(this._dcState, value) != true)
                {
                    this._dcState = value;
                    this.RaisePropertyChanged("Dc_State");
                }
            }
        }

        private int _assist_ID;
        /// <summary>
        /// 附件id
        /// </summary>
        [ColumnMap("Assist_ID", System.Data.DbType.Int32)]
        public int Assist_ID
        {
            get { return _assist_ID; }
            set
            {
                if (object.Equals(this._assist_ID, value) != true)
                {
                    this._assist_ID = value;
                    this.RaisePropertyChanged("Assist_ID");
                }
            }
        }
    }
}


